var before = document.getElementById("before");
var leaves = document.getElementById("leaves");
var srollPos  = document.documentElement.scrollTop;
var content = document.getElementById("content");
var scr = content.offsetTop;
var cha = srollPos-scr;
window.addEventListener('scroll',function(e){
	var srollPos  = document.documentElement.scrollTop;
	var content = document.getElementById("content");
	var scr = content.offsetTop;
	var cha = srollPos-scr;
	console.log(cha);
	before.style.top = cha + 0 +"px";
	leaves.style.top = cha + -250 +"px";
	
});

	


